package demo.enums;

import demo.util.enums.NameValueEnum;

/**
 * @author meilin.huang
 * @date 2022-02-16 4:13 PM
 */
public enum StatusEnum implements NameValueEnum<Integer> {
    /**
     * 启用
     */
    ENABLE(1, "启用"),

    DISABLE(2, "禁用");

    private final Integer value;
    private final String name;

    StatusEnum(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }
}
